/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.bu.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.bu.entity.BuIncrease;
import com.thinkgem.jeesite.modules.bu.dao.BuIncreaseDao;

/**
 * 单表生成Service
 * @author ThinkGem
 * @version 2018-08-27
 */
@Service
@Transactional(readOnly = true)
public class BuIncreaseService extends CrudService<BuIncreaseDao, BuIncrease> implements IBuIncreaseService {

	@Resource
	private BuIncreaseDao buIncreaseDao; 
	
	public BuIncrease get(String id) {
		return super.get(id);
	}
	
	public List<BuIncrease> findList(BuIncrease buIncrease) {
		return super.findList(buIncrease);
	}
	
	public Page<BuIncrease> findPage(Page<BuIncrease> page, BuIncrease buIncrease) {
		return super.findPage(page, buIncrease);
	}
	
	@Transactional(readOnly = false)
	public void save(BuIncrease buIncrease) {
		super.save(buIncrease);
	}
	
	@Transactional(readOnly = false)
	public void delete(BuIncrease buIncrease) {
		super.delete(buIncrease);
	}

	@Override
	public int findMaxValue(BuIncrease increase) {
		return buIncreaseDao.findMaxValue(increase);
	}
	
}